import 'package:flutter/material.dart';
import 'package:trade/theme/app_colors.dart';

class DrawerItem extends StatelessWidget {
  final VoidCallback onTap;
  final String name;
  final String price;
  final bool isRise;

  const DrawerItem(
      {Key? key,
      required this.onTap,
      required this.name,
      this.price = "",
      this.isRise = true})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return InkWell(
      onTap: onTap,
      child: Container(
        color: appColors.chartBackgroundColor.withOpacity(0.5),
        padding: EdgeInsets.only(left: 15),
        height: 50,
        alignment: Alignment.centerLeft,
        child: Text(
          name,
          style: TextStyle(
              color: Colors.white, fontSize: 12, fontWeight: FontWeight.w500),
        ),
      ),
    );
  }
}
